/*
 * Created on 16-07-2005
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package utiles.exceptions;

/**
 * @author Virtual Dark Priest
 * 
 * TODO To change the template for this generated type comment go to Window -
 * Preferences - Java - Code Style - Code Templates
 */


public class DataBaseException extends Exception {

    /**
	 * 
	 */
	private static final long serialVersionUID = 2331513001189641288L;
	private Exception encapsulatedException;

    public DataBaseException(Exception exception) {
        encapsulatedException = exception;
    }

    public String getMessage() {
        return encapsulatedException.getMessage();
    }

    public Exception getEncapsulatedException() {
        return encapsulatedException;
    }
    
    public void printStackTrace() {
        printStackTrace(System.err);
    }
}